clc
clear 
clc
clear

T=1;
w=1/T;
t = linspace(0,2*pi,1000); 
x = sawtooth(2*pi*t/T, 0.5);
plot(t,x)